<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <body>
        <form:form modelAttribute="complaint" method="post" action="/admin/complaint/edit" >
            <div class="colmask threecol">
                <div class="colmid">
                    <div class="colleft">
                        <div class="col1" >
                            <form:textarea path="text" cols="50" rows="5" />
                        </div>
                        <div class="col2">
                            <table class="simple">
                                <tr>
                                    <td>Name (optional)</td>
                                    <td><form:input path="name" /></td>
                                </tr>
                                <tr>
                                    <td>Match</td>
                                    <td>
                                        <c:out value="${match.dateAndTime}"/>
                                        <br/>
                                        <c:out value="${player1.lastName}"/> vs. <c:out value="${player2.lastName}"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td>Timestamp</td>
                                    <td><c:out value="${complaint.timestamp}"/></td>
                                </tr>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <input type="submit" value="Add" />
        </form:form>
    </body>
</html>
